'''
Created on Apr 2, 2011

@author: leo
'''
from os import environ

appid = environ['APPLICATION_ID']
 
domainroot = environ['HTTP_HOST']

emaildomain = u'%s.appspotmail.com' % appid

emailsender = 'PrintZilla <%s@%s>' % ('no-reply', emaildomain,)

urlroot = 'http://%s' % domainroot

def file_url(id):
    return urlroot + '/file/%s' % id

def email_addr(user):
    return u'%s@' % user + emaildomain

sesson_id_cookie_key = '_uh'

GOOGLE_OAUTH2_CLIENT_ID = '494890434974.apps.googleusercontent.com'
GOOGLE_OAUTH2_CLIENT_SECRET = 'i08cSJrq8Czm83nG7uDG0Gmv'
GOOGLE_OAUTH2_GCP_SCOPE = 'https://www.googleapis.com/auth/cloudprint'
